﻿@model VoiceAd.Models.tblContent
@{
    ViewBag.Title = "Edit Content";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<h2>
    Thay đổi nội dung</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/fckeditor/fckeditor.js")" type="text/javascript"></script>
<script type="text/javascript">
    window.onload = function () {
        var oEditVn = new FCKeditor('Body_VI');
        oEditVn.BasePath = "@Url.Content("~/Content/fckeditor/")";
        oEditVn.Height = 400;
        oEditVn.ReplaceTextarea();

        var oEditEn = new FCKeditor('Body_EN');
        oEditEn.BasePath = "@Url.Content("~/Content/fckeditor/")";
        oEditEn.Height = 400;
        oEditEn.ReplaceTextarea();
    }
</script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>tblContent</legend>
        @Html.HiddenFor(model => model.Id)
        <div class="editor-label">
            @Html.LabelFor(model => model.Title_EN)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title_EN)
            @Html.ValidationMessageFor(model => model.Title_EN)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Title_VI)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title_VI)
            @Html.ValidationMessageFor(model => model.Title_VI)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Body_EN)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Body_EN)
            @Html.ValidationMessageFor(model => model.Body_EN)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Body_VI)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Body_VI)
            @Html.ValidationMessageFor(model => model.Body_VI)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Content")
</div>
